<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Api\Controller;

use Think\Controller;
use Think\Cache\RedisCache;

Class BaseController extends Controller {

    function __construct() {
        parent::__construct();
        $this->_redis = RedisCache::getIntance(RedisCache::REDIS_CMS);
    }

    protected function security($prefix) {
        return md5($prefix . C("SECURITY_KEY"));
    }

}
